class Solution {
public:
    vector<int> runningSum(vector<int>& nums) {
        vector<int> a(nums.size());
        int temp=0;
       for(int i=0;i<nums.size();i++){
           a[i]=temp+nums[i];
           temp+=nums[i];
       }
       return a;
    }
};
